package com.pinyougou.sellergoods.service;


import com.pinyougou.pojo.TbBrand;
import entity.PageResult;
import entity.Result;

import java.util.List;

public interface BrandService {

    /* 查询所有品牌*/
    public List<TbBrand> findAll();

    /* 查询所有品牌  （分页）*/
    public PageResult findPage(int pageNum,int pageSize);

    /* 新增类别*/
    public Result add(TbBrand brand);

    /* 查询类别*/
    public TbBrand findOne(Long id);

    /* 修改类别*/
    public void update(TbBrand brand);

    /* 删除类别*/
    public void delete(Long[] ids);

    /* 站内搜索（分页）*/
    public PageResult findPage(TbBrand tbBrand,int pageNum,int pageSize);
}
